<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">

<head>
<meta charset="UTF-8">
    <title>File Manager</title>
</head>
<body>
<form action="/demo/uploadfile" enctype="multipart/form-data" method="post">
    文件夹：<input type="file" id="dir" name="dir" webkitdirectory mozdirectory /><br>
    多个文件：<input type="file" id="file" name="file" multiple /><br>
    <input type="submit" id="submit" value="Submit" />
</form>
<div id="filelist">
    <p>文件列表:
    <ul th:each="f,fStat:${fnames}">
        <li  th:text="${f}"><a href="" target="_blank">${f}</a></li>
    </ul>
</div>
</body>
</html>